{% extends "base_generic.html" %}
{% block content %}
        <h1><a href="/citas">Citas</a></h1>
        <h2><a href="/admin/citas//new/" class="add">Añadir cita</a></h2>

        <table class="imgswithoutborders">
        {% for cita in citas %}
          <tr>
            <td>{{ cita.citaId }}</td>
            <td>{{ cita.text }}</td>
            <td><a href="/{{ cita.citaId }}">Public</a></td>
            <td><a href="/admin/citas/{{ cita.key }}/edit/">Editar</a></td>
            <td><a href="/admin/citas/{{ cita.key }}/delete/" onclick="if(confirm('¿Do you really want to delete {{ cita.name }}?')){return true;}else{return false;}">Borrar</a></td>
          </tr>
        {% endfor %}
        </table>

{% endblock %}
